package com.soloyogame.anitoys.db.bean;

import com.soloyogame.anitoys.db.page.PagerModel;

/**
 * 资源菜单实体类
 *
 * @author shaojian
 */
public class Menu extends PagerModel {

    private String pid;    //父类ID
    private String url;    //资源
    private String name;   //资源名称
    private int orderNum;  //序号
    private String type;   //功能类型module：模块 ; page：页面 ; button：功能

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void clear() {
        this.setId(null);
        pid = null;
        url = null;
        name = null;
        orderNum = 0;
        type = null;

    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "[id:" + getId() + ",pid:" + pid + "]";
    }

}
